unsigned long recsize;
unsigned char *record;
unsigned short stringlen;
+ static int serial = 0;
struct ll {
long lat;
long lon;
wpt_tmp = xcalloc(sizeof (*wpt_tmp), 1);
wpt_tmp->latitude = lat;
wpt_tmp->longitude = -lon;
+ wpt_tmp->shortname = xmalloc(7);
+ sprintf( wpt_tmp->shortname, "\\%5.5x", serial++ );
route_add_wpt(track_head, wpt_tmp);
} else {
Skip(infile, recsize);
wpt_tmp->latitude = lat;
wpt_tmp->longitude = -lon;
+ wpt_tmp->shortname = xmalloc(7);
+ sprintf( wpt_tmp->shortname, "\\%5.5x", serial++ );
route_add_wpt(track_head, wpt_tmp);
latlon++;